<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>公告通知 - 邻里社区</title>
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css">
    <style>
        :root {
            --primary: #3A7BFF;
            --primary-light: #E8F0FF;
            --accent: #FF7D45;
            --success: #4CAF50;
            --warning: #FFC107;
            --text-dark: #333333;
            --text-medium: #666666;
            --text-light: #999999;
            --background: #FAFAFA;
            --card-bg: #FFFFFF;
            --border-radius: 16px;
            --shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
            --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        }
        
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Comic Sans MS', 'Marker Felt', 'PingFang SC', 'Helvetica Neue', Arial, sans-serif;
        }
        
        body {
            background-color: var(--background);
            color: var(--text-dark);
            line-height: 1.6;
            max-width: 500px;
            margin: 0 auto;
            padding: 0 15px 90px;
            background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 极 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 极 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4极-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.极-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23e0e0e0' fill-opacity='0.2' fill-rule='evenodd'/%3E%3C/svg%3E");
        }
        
        /* 头部设计 */
        .header {
            background: linear-gradient(135deg, var(--primary), #5A91FF);
            color: white;
            padding: 18px 15px;
            border-radius: 0 0 30px 30px;
            margin-bottom: 25px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            box-shadow: 0 8px 24px rgba(58, 123, 255, 0.25);
            position: relative;
            overflow: hidden;
        }
        
        .header::before {
            content: '';
            position: absolute;
            top: 0;
            right: 0;
            width: 120px;
            height: 120px;
            background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' fill-opacity='0.2' d='M12 2L2 7l10 5 10-5-10-5zM2 17l10 5 10-5M2 12l10 5 10-5'/%3E%3C/svg%3E");
            background-size: contain;
            background-repeat: no-repeat;
            transform: rotate(15deg) translate(20px, -40px);
        }
        
        .logo {
            font-size: 1.6rem;
            font-weight: bold;
            display: flex;
            align-items: center;
            position: relative;
            z-index: 2;
        }
        
        .logo i {
            margin-right: 10px;
            font-size: 1.8rem;
            animation: pulse 2s infinite;
        }
        
        .header-icons {
            display: flex;
            gap: 20px;
            font-size: 1.4rem;
            position: relative;
            z-index: 2;
        }
        
        .header-icons i {
            transition: var(--transition);
        }
        
        .header-icons i:hover {
            transform: scale(1.15);
        }
        
        /* 页面标题 */
        .page-title {
            font-size: 1.5rem;
            font-weight: 700;
            margin-bottom: 20px;
            display: flex;
            align-items: center;
            gap: 10px;
            color: var(--text-dark);
        }
        
        .page-title i {
            color: var(--warning);
        }
        
        /* 公告筛选 */
        .announcement-filter {
            display: flex;
            gap: 10px;
            margin-bottom: 20px;
            overflow-x: auto;
            padding-bottom: 10px;
        }
        
        .filter-btn {
            padding: 10px 20px;
            border-radius: 30px;
            background-color: var(--card-bg);
            border: 1px solid #f0f0f0;
            font-weight: 500;
            cursor: pointer;
            transition: var(--transition);
            white-space: nowrap;
            box-shadow: var(--shadow);
        }
        
        .filter-btn.active {
            background-color: var(--primary);
            color: white;
            border-color: var(--primary);
        }
        
        .filter-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
        }
        
        /* 公告列表 */
        .announcement-list {
            display: flex;
            flex-direction: column;
            gap: 15px;
        }
        
        .announcement-item {
            background-color: var(--card-bg);
            border-radius: 20px;
            padding: 20px;
            box-shadow: var(--shadow);
            transition: var(--transition);
            cursor: pointer;
            position: relative;
            overflow: hidden;
            border-left: 5px solid transparent;
        }
        
        .announcement-item:hover {
            transform: translateY(-5px);
            box-shadow: 0 12px 25px rgba(0, 0, 0, 0.12);
        }
        
        .announcement-item::before {
            content: '';
            position: absolute;
            top: 0;
            right: 0;
            width: 70px;
            height: 70px;
            background: rgba(58, 123, 255, 0.05);
            border-radius: 0 20px 0 50px;
        }
        
        .announcement-item.important {
            border-left-color: var(--warning);
        }
        
        .announcement-item.important::before {
            background: rgba(255, 193, 7, 0.1);
        }
        
        .announcement-item.urgent {
            border-left-color: var(--accent);
        }
        
        .announcement-item.urgent::before {
            background: rgba(255, 125, 69, 0.1);
        }
        
        .announcement-header {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            margin-bottom: 10px;
        }
        
        .announcement-title {
            font-weight: 700;
            font-size: 1.1rem;
            color: var(--text-dark);
            flex: 1;
            margin-right: 15px;
        }
        
        .announcement-badge {
            padding: 4px 10px;
            border-radius: 20px;
            font-size: 0.75rem;
            font-weight: 600;
            white-space: nowrap;
        }
        
        .badge-important {
            background-color: var(--warning);
            color: #333;
        }
        
        .badge-urgent {
            background-color: var(--accent);
            color: white;
        }
        
        .badge-normal {
            background-color: var(--primary-light);
            color: var(--primary);
        }
        
        .announcement-content {
            color: var(--text-medium);
            margin-bottom: 15px;
            line-height: 1.5;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }
        
        .announcement-meta {
            display: flex;
            justify-content: space-between;
            align-items: center;
            font-size: 0.85rem;
            color: var(--text-light);
        }
        
        .announcement-sender {
            display: flex;
            align-items: center;
            gap: 5px;
        }
        
        .announcement-sender i {
            color: var(--primary);
        }
        
        .announcement-time {
            display: flex;
            align-items: center;
            gap: 5px;
        }
        
        .announcement-time i {
            color: var(--text-light);
        }
        
        /* 空状态 */
        .empty-state {
            text-align: center;
            padding: 40px 20px;
            background-color: var(--card-bg);
            border-radius: 20px;
            box-shadow: var(--shadow);
        }
        
        .empty-state i {
            font-size: 3rem;
            color: var(--text-light);
            margin-bottom: 15px;
        }
        
        .empty-state h3 {
            font-size: 1.2rem;
            color: var(--text-medium);
            margin-bottom: 10px;
        }
        
        .empty-state p {
            color: var(--text-light);
        }
        
        /* 底部导航 */
        .bottom-nav {
            position: fixed;
            bottom: 0;
            left: 0;
            right: 0;
            background-color: var(--card-bg);
            display: flex;
            justify-content: space-around;
            padding: 15px 0 10px;
            box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.05);
            max-width: 500px;
            margin: 0 auto;
            z-index: 1000;
            border-radius: 25px 25px 0 0;
        }
        
        .nav-item {
            text-align: center;
            color: var(--text-light);
            text-decoration: none;
            font-size: 0.85rem;
            transition: var(--transition);
            position: relative;
            padding: 5px 10px;
            border-radius: 20px;
        }
        
        .nav-item.active {
            color: var(--primary);
            background-color: rgba(58, 123, 255, 0.1);
        }
        
        .nav-item i {
            font-size: 1.4rem;
            display: block;
            margin-bottom: 5px;
        }
        
        .nav-item .notification-badge {
            position: absolute;
            top: -5px;
            right: 5px;
            background-color: var(--accent);
            color: white;
            font-size: 0.7rem;
            width: 18px;
            height: 18px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: bold;
        }
        
        /* 发布按钮 */
        .publish-btn {
            position: relative;
        }
        
        .publish-btn .nav-item {
            width: 60px;
            height: 60px;
            border-radius: 50%;
            background: linear-gradient(135deg, var(--primary), #5A91FF);
            color: white;
            display: flex;
            justify-content: center;
            align-items: center;
            margin-top: -25px;
            box-shadow: 0 6px 16px rgba(58, 123, 255, 0.4);
            transition: var(--transition);
        }
        
        .publish-btn .nav-item:hover {
            transform: scale(1.1) rotate(5deg);
            box-shadow: 0 8px 20px rgba(58, 123, 255, 0.5);
        }
        
        .publish-btn .nav-item i {
            margin: 0;
            font-size: 1.8rem;
        }
        
        /* 动画 */
        @keyframes pulse {
            0% {
                transform: scale(1);
            }
            50% {
                transform: scale(1.1);
            }
            100% {
                transform: scale(1);
            }
        }
        
        @keyframes fadeIn {
            from {
                opacity: 0;
                transform: translateY(10px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }
        
        /* 响应式调整 */
        @media (max-width: 375px) {
            .announcement-title {
                font-size: 1rem;
            }
            
            .filter-btn {
                padding: 8px 15px;
                font-size: 0.9rem;
            }
        }
    </style>
</head>
<body>
    <div class="header">
        <div class="logo"><i class="fas fa-hands-helping"></i> 邻里社区</div>
        <div class="header-icons">
            <i class="fas fa-search"></i>
            <i class="far fa-user-circle"></i>
        </div>
    </div>
    
    <div class="page-title">
        <i class="fas fa-bell"></i> 公告通知
    </div>
    
    <div class="announcement-filter">
        <div class="filter-btn active">全部</div>
        <div class="filter-btn">重要</div>
        <div class="filter-btn">活动</div>
        <div class="filter-btn">物业</div>
        <div class="filter-btn">社区</div>
    </div>
    
    <div class="announcement-list">
        <div class="announcement-item important">
            <div class="announcement-header">
                <div class="announcement-title">【重要通知】本周五下午电梯维护通知</div>
                <div class="announcement-badge badge-important">重要</div>
            </div>
            <div class="announcement-content">
                为确保电梯安全运行，物业服务中心计划于本周五下午14:00至17:00对小区1号楼、2号楼的所有电梯进行例行维护保养。
            </div>
            <div class="announcement-meta">
                <div class="announcement-sender">
                    <i class="fas fa-user-circle"></i> 物业管理处
                </div>
                <div class="announcement-time">
                    <i class="far fa-clock"></i> 3小时前
                </div>
            </div>
        </div>
        
        <div class="announcement-item">
            <div class="announcement-header">
                <div class="announcement-title">十月社区活动计划表已发布</div>
                <div class="announcement-badge badge-normal">通知</div>
            </div>
            <div class="announcement-content">
                本月将举行社区篮球赛、亲子读书会和老年人健康讲座等活动，欢迎各位业主报名参加。
            </div>
            <div class="announcement-meta">
                <div class="announcement-sender">
                    <i class="fas fa-user-circle"></i> 社区居委会
                </div>
                <div class="announcement-time">
                    <i class="far fa-clock"></i> 昨天
                </div>
            </div>
        </div>
        
        <div class="announcement-item urgent">
            <div class="announcement-header">
                <div class="announcement-title">【紧急通知】临时停水通知</div>
                <div class="announcement-badge badge-urgent">紧急</div>
            </div>
            <div class="announcement-content">
                因供水管道紧急维修，今天下午14:00-16:00小区将临时停水，请各位业主提前做好储水准备。
            </div>
            <div class="announcement-meta">
                <div class="announcement-sender">
                    <i class="fas fa-user-circle"></i> 物业管理处
                </div>
                <div class="announcement-time">
                    <i class="far fa-clock"></i> 2小时前
                </div>
            </div>
        </div>
        
        <div class="announcement-item">
            <div class="announcement-header">
                <div class="announcement-title">关于小区垃圾分类的温馨提示</div>
                <div class="announcement-badge badge-normal">提醒</div>
            </div>
            <div class="announcement-content">
                请各位业主按照上海市垃圾分类标准正确分类投放垃圾，共同维护小区环境。
            </div>
            <div class="announcement-meta">
                <div class="announcement-sender">
                    <i class="fas fa-user-circle"></i> 物业服务中心
                </div>
                <div class="announcement-time">
                    <i class="far fa-clock"></i> 3天前
                </div>
            </div>
        </div>
        
        <div class="announcement-item">
            <div class="announcement-header">
                <div class="announcement-title">周末社区篮球赛报名开始</div>
                <div class="announcement-badge badge-normal">活动</div>
            </div>
            <div class="announcement-content">
                本周末将在社区篮球场举行邻里篮球友谊赛，欢迎各位篮球爱好者报名参加，奖品丰厚！
            </div>
            <div class="announcement-meta">
                <div class="announcement-sender">
                    <i class="fas fa-user-circle"></i> 社区活动中心
                </div>
                <div class="announcement-time">
                    <i class="far fa-clock"></i> 5天前
                </div>
            </div>
        </div>
    </div>
    
    <div class="bottom-nav">
        <a href="#" class="nav-item">
            <i class="fas fa-home"></i>
            <span>首页</span>
        </a>
        <a href="#" class="nav-item">
            <i class="fas fa-comments"></i>
            <span>消息</span>
        </a>
        <div class="publish-btn">
            <a href="#" class="nav-item">
                <i class="fas fa-plus"></i>
            </a>
        </div>
        <a href="#" class="nav-item active">
            <i class="fas fa-bell"></i>
            <span>公告</span>
            <span class="notification-badge">5</span>
        </a>
        <a href="#" class="nav-item">
            <i class="fas fa-user-circle"></i>
            <span>我的</span>
        </a>
    </div>
    
    <script>
        // 筛选功能
        document.querySelectorAll('.filter-btn').forEach(btn => {
            btn.addEventListener('click', function() {
                document.querySelectorAll('.filter-btn').forEach(b => {
                    b.classList.remove('active');
                });
                this.classList.add('active');
                
                // 这里可以添加根据筛选条件显示不同公告的逻辑
                // 实际应用中会根据筛选条件从服务器获取数据
                const filterType = this.textContent;
                alert(`已筛选: ${filterType}公告`);
            });
        });
        
        // 公告项点击跳转到详情页
        document.querySelectorAll('.announcement-item').forEach(item => {
            item.addEventListener('click', function() {
                const title = this.querySelector('.announcement-title').textContent;
                alert(`跳转到"${title}"的详情页`);
                // 实际应用中这里会跳转到公告详情页面
                // window.location.href = `announcement-detail.html?id=${id}`;
            });
        });
        
        // 模拟标记已读功能
        document.querySelectorAll('.announcement-item').forEach(item => {
            item.addEventListener('click', function() {
                const badge = this.querySelector('.notification-badge');
                if (badge) {
                    badge.style.display = 'none';
                    
                    // 更新底部导航的未读数量
                    const navBadge = document.querySelector('.bottom-nav .notification-badge');
                    if (navBadge)